using System;
using System.Runtime.Serialization;
namespace eTMS.DAO{
	/********************************BEGIN DanTocEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:26/10/2011 44:05:56</para>
	/// <para>Class Name: DanTocEntity</para>
	/// <para>Description: ClassDanTocEntity store data of table DanToc</para>
	///</summary>

	[DataContract]
	public partial class DanTocEntity{


		private bool _InternalChangedIsNullDanToc_ID=true;
		private bool _IsNullDanToc_ID=true;
		private bool _InternalChangedIsNullMaDanToc=true;
		private bool _IsNullMaDanToc=true;
		private bool _InternalChangedIsNullTenDanToc=true;
		private bool _IsNullTenDanToc=true;
		private bool _InternalChangedIsNullMoTaDanToc=true;
		private bool _IsNullMoTaDanToc=true;
		private int _DanToc_ID;
		private string _MaDanToc;
		private string _TenDanToc;
		private string _MoTaDanToc;
		[DataMember]
		public bool IsNullDanToc_ID{
			get{return _IsNullDanToc_ID;}
			set{if(!_InternalChangedIsNullDanToc_ID)_IsNullDanToc_ID=value;}
		}
		[DataMember]
		public bool IsNullMaDanToc{
			get{return _IsNullMaDanToc;}
			set{if(!_InternalChangedIsNullMaDanToc)_IsNullMaDanToc=value;}
		}
		[DataMember]
		public bool IsNullTenDanToc{
			get{return _IsNullTenDanToc;}
			set{if(!_InternalChangedIsNullTenDanToc)_IsNullTenDanToc=value;}
		}
		[DataMember]
		public bool IsNullMoTaDanToc{
			get{return _IsNullMoTaDanToc;}
			set{if(!_InternalChangedIsNullMoTaDanToc)_IsNullMoTaDanToc=value;}
		}
		[DataMember]
		public int DanToc_ID{
			get{return _DanToc_ID;}
			set{
				_DanToc_ID=value;
				if(_DanToc_ID!=null){
					_IsNullDanToc_ID=false;
					_InternalChangedIsNullDanToc_ID=true;
				}
			}
		}
		[DataMember]
		public string MaDanToc{
			get{return _MaDanToc;}
			set{
				_MaDanToc=value;
				if(_MaDanToc!=null){
					_IsNullMaDanToc=false;
					_InternalChangedIsNullMaDanToc=true;
				}
			}
		}
		[DataMember]
		public string TenDanToc{
			get{return _TenDanToc;}
			set{
				_TenDanToc=value;
				if(_TenDanToc!=null){
					_IsNullTenDanToc=false;
					_InternalChangedIsNullTenDanToc=true;
				}
			}
		}
		[DataMember]
		public string MoTaDanToc{
			get{return _MoTaDanToc;}
			set{
				_MoTaDanToc=value;
				if(_MoTaDanToc!=null){
					_IsNullMoTaDanToc=false;
					_InternalChangedIsNullMoTaDanToc=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END DanTocEntityBase*****************************************/
	/*****************************************************************************************************/
}

